package jmbeas.kata.price;
/**
 * TODO @see http://martinfowler.com/ap2/quantity.html
 */
public class Money {

	private double amount;
	private String currency;
	
	public Money(double amount, String currency) {
		this.amount = amount;
		this.currency = currency;
	}

	public double getAmount() {
		return amount;
	}

	public String getCurrency() {
		return currency;
	}

	public void add(Money value) {
		// TODO Contemplar excepciones
		amount += value.getAmount();
	}
	
	@Override
	public boolean equals(Object obj) {
		// TODO Contemplar excepciones
		return this.amount == ((Money)obj).getAmount();
	}
	
}
